import java.util.Scanner;
public class 找索引 {


    public static void main(String[] args) {
        int[] arr = {19, 28, 37, 46, 50};
        System.out.println("请输入数据");
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] == a) {
                System.out.println("索引值为"+i);
            }
            else{
                System.out.println("未找到索引");
                break;
            }
        }
    }
}